package JCT_Chapter_03;

/**
 * This is the first sample program in Core Java Chapter 3
 */

//类名
public class FirstSample {
    //方法名
    public static void main(String[] args) {
        System.out.println("We will not use 'Hello World!'");
        int m = 7;
        int n = 7;
        int a = 2 * ++m;
        int b = 2 * n++;
        System.out.println(a);
        System.out.println(b);
        System.out.println(m);
        System.out.println(n);
        String greeting = "Hello";
        System.out.println(greeting);
        greeting = greeting.substring(0,3) + "p!";
        System.out.println(greeting);
    }
}